package com.etooling.framework.repository;


import com.etooling.framework.entity.LoginLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface LoginLogRepository extends BaseRepository<LoginLog> {
    @Query(nativeQuery = true,value = "select * from framework.t_login_log" ,countQuery = "select count(*) from framework.t_login_log")
    Page<Map<String, Object>> findByOrderBy(Pageable pageable);
}
